com.supermap.ar.areffect.component
Class PanGestureController
- java.lang.Object
-
- com.supermap.ar.areffect.component.PanGestureController
-
public class PanGestureController extends java.lang.ObjectView panning controller
-
-
Constructor Summary
Constructors Constructor and Description PanGestureController(android.view.View view)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description android.graphics.PointgetCurrentPoint()Gets the position of the left-top corner of the current viewfloatgetScale()Gets the aspect ration of the current viewbooleanisEnabled()Determines whether it is enabledPanGestureControllersetCurrentPoint(android.graphics.Point point)Sets the position of the left-top cornervoidsetEnabled(boolean enabled)Sets the enabled statusPanGestureControllersetScale(float sc)Sets scalevoidupdateTouchEvent(android.view.MotionEvent event)Updates the touching event
-
-
-
Constructor Detail
-
PanGestureController
public PanGestureController(android.view.View view)
The constructor.- Parameters:
view-
-
-
Method Detail
-
getCurrentPoint
public android.graphics.Point getCurrentPoint()
Gets the position of the left-top corner of the current view- Returns:
-
setCurrentPoint
public PanGestureController setCurrentPoint(android.graphics.Point point)
Sets the position of the left-top corner- Parameters:
point- the position of the left-top corner- Returns:
- PanGestureController
-
getScale
public float getScale()
Gets the aspect ration of the current view- Returns:
-
setScale
public PanGestureController setScale(float sc)
Sets scale- Parameters:
sc-- Returns:
- PanGestureController
-
updateTouchEvent
public void updateTouchEvent(android.view.MotionEvent event)
Updates the touching event- Parameters:
event-
-
isEnabled
public boolean isEnabled()
Determines whether it is enabled- Returns:
-
setEnabled
public void setEnabled(boolean enabled)
Sets the enabled status- Parameters:
enabled-
-
-